/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testingexcel;

import java.util.ArrayList;

/**
 *
 * @author Joe
 */
public class SoireeStudent {
    final int MAX_MET = 12;
    
    public SoireeStudent(String n)
    {
        name = n;
        beenMetCount = 0;
        met = new ArrayList<String>(MAX_MET);
    }
    
    public String getName()
    {
        return name;
    }
    
    public ArrayList<String> getMet()
    {
        return met;
    }
    
    public void meetSomeone(SoireeStudent friend)
    {
        this.met.add(friend.getName());
    }
    
    public boolean canBeMet()
    {
            return (beenMetCount < 12);
    }
    
    public boolean alreadyMet(SoireeStudent person)
    {
        return met.contains(person.getName());
    }
            
    public boolean alreadyMet(String n)
    {
        return met.contains(n);
    }
    private String name;
    private int beenMetCount;
    private ArrayList<String> met;

}
